package com.his.controller;

import com.his.entity.OrderCategory;
import com.his.service.OrderCategoryService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * (OrderCategory)表控制层
 *
 * @author makejava
 * @since 2020-10-23 18:14:11
 */
@RestController
@RequestMapping("orderCategory")
public class OrderCategoryController {
    /**
     * 服务对象
     */
    @Resource
    private OrderCategoryService orderCategoryService;

    /**
     * 通过主键查询单条数据
     *
     * @param id 主键
     * @return 单条数据
     */
    @GetMapping("selectOne")
    public OrderCategory selectOne(Integer id) {
        return this.orderCategoryService.queryById(id);
    }

}